package com.edu.mapper;

import com.edu.bean.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface BookMapper {
    List<Book> selectAllBook();
    int selectBookCount();
    int deleteBookById(int bookId);
    List<Book> selectAllBook(@Param("pageNum") int pageNum,@Param("pageSize") int pageSize);
    int updateBook(Book book);
    int selectBookCountByBook(Book book);
    List<Book> selectAllBookByBook(@Param("pageNum") int pageNum,@Param("pageSize") int pageSize, @Param("b")Book book);
}
